<?php

namespace backend\modules\rbac\rules;

use Yii;
use yii\rbac\Rule;

/**
 * Rule represents a business constraint that may be associated with a role, permission or assignment.
 *
 * @author Alexander Makarov <sam@rmcreative.ru>
 * @since 2.0
 */
abstract class PolicyRule extends Rule {

    public $name = 'policy';
    public $label = '权限策略';

    public function execute($user, $item, $params) {
        Yii::error([
            $user, $item, $params
        ]);
        // 这里先设置为false,逻辑上后面再完善
        return false;
    }

}
